home *** CD-ROM | disk | FTP | other *** search
/ Risc World 5 / Risc World 5.iso / SOFTWARE / Issue3 / Games / xrick / !xrick / include / h / syssnd < prev    next >
Text File  |  2004-06-24  |  966b  |  46 lines

  1. /*
  2.  * xrick/include/syssnd.h
  3.  *
  4.  * Copyright (C) 1998-2002 BigOrno (bigorno@bigorno.net). All rights reserved.
  5.  *
  6.  * The use and distribution terms for this software are contained in the file
  7.  * named README, which can be found in the root of this distribution. By
  8.  * using this software in any fashion, you are agreeing to be bound by the
  9.  * terms of this license.
  10.  *
  11.  * You must not remove this notice, or any other, from this software.
  12.  */
  13.  
  14. #ifndef _SYSSND_H
  15. #define _SYSSND_H
  16.  
  17. #include "config.h"
  18.  
  19. #ifdef ENABLE_SOUND
  20.  
  21. #include "system.h"
  22.  
  23. /* 8-bit mono at 22050Hz */
  24. #define SYSSND_FREQ 22050
  25. #define SYSSND_CHANNELS 1
  26. #define SYSSND_MAXVOL 10
  27. #define SYSSND_MIXCHANNELS 8
  28. /* MIXSAMPLES: 256 is too low on Windows. 512 means ~20 mix per second at 11025Hz */
  29. /* MIXSAMPLES: ?? at 22050Hz */
  30. #define SYSSND_MIXSAMPLES 1024
  31.  
  32. typedef struct {
  33.     sound_t *snd;
  34.     U8 *buf;
  35.     U32 len;
  36.     S8 loop;
  37. } channel_t;
  38.  
  39. #endif /* ENABLE_SOUND */
  40.  
  41. #endif /* _SYSSND_H */
  42.  
  43. /* eof */
  44.  
  45.  
  46.